﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class View_WMG_WMG004 : ViewMatrix //System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        limit();
        Title = "序時統計表";
    }

    protected void btn2Excel_Click(object sender, EventArgs e)
    {
        serviceName = "MISAPP.Classify.Service.Service_WMG004";


        string pageParameter;
        pageParameter = string.Format(
            "method=GetSummaryData&xls=WMG004&service=Service_WMG004&caption={0}&captionRight={1}&toHtmlMethod={2}"
            , "序時統計表", string.Empty, string.Empty);

        
        //pageParameter = "method=GetSummaryData&xls=WMG004&service=Service_WMG004";

        btn2Excel.PreviousPage = "../GV2XLS.aspx";
        btn2Excel.PageParameter = pageParameter;
    }

    protected void btn_ExecuteClick(object sender,EventArgs e)
    {
        MISAPP.Classify.Service.Service_WMG004 wmg = new MISAPP.Classify.Service.Service_WMG004();
        DataTable dt = wmg.GetSummaryData(null);
        CLB_Summary.SetData(dt, new string[] { });

    }
}
